package com.sunwayhorizo.health.hl7.persistent.pk;

import java.io.Serializable;

public class RimCoreActCdSetsPK implements Serializable {
    public Long actCodeSetId;
    public Long actId;
    public Long actVersionNum;

    public RimCoreActCdSetsPK() {
    }

    public RimCoreActCdSetsPK(Long actCodeSetId, Long actId, 
                              Long actVersionNum) {
        this.actCodeSetId = actCodeSetId;
        this.actId = actId;
        this.actVersionNum = actVersionNum;
    }

    public boolean equals(Object other) {
        if (other instanceof RimCoreActCdSetsPK) {
            final RimCoreActCdSetsPK otherRimCoreActCdSetsPK = (RimCoreActCdSetsPK) other;
            final boolean areEqual = 
                (otherRimCoreActCdSetsPK.actCodeSetId.equals(actCodeSetId) && otherRimCoreActCdSetsPK.actId.equals(actId) && otherRimCoreActCdSetsPK.actVersionNum.equals(actVersionNum));
            return areEqual;
        }
        return false;
    }

    public int hashCode() {
        return super.hashCode();
    }
}
